
<h3 class="h1"><b>管理员管理</b></h3>
<div class="admin_table mb10">
      <table width="100%">
         <tr class="tr2">
            <td>用户名</td>
            <td>操作</td>
         </tr>
         <?php foreach ($this->managers as $item): ?>
         <tr class="tr3">
            <td class="td2"><?php echo $item['user_name']; ?></td>
            <td class="td2">
            	<?php if ($item['is_god'] != 1): ?>
            	<a href="<?php echo $this->url(array('action' => 'edit', 'managerId' => $item['user_id'])); ?>">编辑</a>
            	<?php endif; ?>
            	<?php if ($item['is_god'] != 1): ?>
            	<a class="opDel" href="<?php echo $this->url(array('action' => 'delete', 'managerId' => $item['user_id'])); ?>">删除</a>
            	<?php endif; ?>
            </td>
         </tr>
         <?php endforeach; ?>
      </table>
</div>

<form action="<?php echo $this->url(array('action' => 'add')); ?>" method="post">
<h3 class="h1"><b>添加管理员</b></h3>
<div class="admin_table mb10">
      <table width="100%">
         <tr>
            <td class="td1">用户名</td>
            <td class="td2"><input type="text" class="input input_wa" name="username" /></td>
         </tr>
         <tr>
            <td class="td1">密码</td>
            <td class="td2"><input type="password" class="input input_wa" name="password" /></td>
         </tr>
         <tr>
            <td class="td1">确认密码</td>
            <td class="td2"><input type="password" class="input input_wa" name="check_pwd" /></td>
         </tr>
      </table>
</div>
<div class="tac mb10"><span class="btn"><span><button type="submit" onfocus="blur();">提 交</button></span></span></div>
</form>

<script language="javascript">
$(document).ready(function() {
	$("a.opDel").click(function() {
		return confirm('是否删除该管理员？');
	});
});

</script>